package com.bwda.dsrs.filecenter.domain.form.registerkey;

import javax.validation.constraints.NotNull;
import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * @author Administrator
 */
@Data
@ApiModel(description = "秘钥注册管理")
public class RegisterKeyUpdateForm {

	@ApiModelProperty(value = "注册秘钥id", required = true)
	@NotNull(message = "注册秘钥id不能为空")
	private Integer registerKeyId;

	@ApiModelProperty(value = "注册秘钥名称")
	private String registerKeyName;

	@ApiModelProperty(value = "算法(SM4,AES,3DES,RSA,SM2)")
	private String algorithm;

	@ApiModelProperty(value = "场景编号(默认0全部，以系统编号开头，不可修改)")
	private String sceneCode;

	@ApiModelProperty(value = "场景名称")
	private String sceneName;

	@ApiModelProperty(value = "应用系统ID")
	private Integer appId;

	@ApiModelProperty(value = "秘钥规则ID")
	private Integer keyRuleId;

	@ApiModelProperty(value = "有效期天数0始终有效")
	private Integer validdays;

	@ApiModelProperty(value = "秘钥提前提醒天数")
	private Integer warnDays;

	@ApiModelProperty(value = "生效时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date effectiveTime;

	@ApiModelProperty(value = "预计失效时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date failureTime;

	@ApiModelProperty(value = "负责人编号")
	private String respUserCode;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@ApiModelProperty(value = "创建人")
	private String createUserCode;

	@ApiModelProperty(value = "生成的秘钥")
	private String secretKey;

	@ApiModelProperty(value = "版本")
	private String currentVersion;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

}